package com.dao;

import java.util.HashMap;
import java.util.Map;

import javax.ejb.Stateless;

import com.model.User;

@Stateless
public class UserDAO extends GenericDAO<User>{
	
	public UserDAO(){
		super(User.class);
	}
	
	public User findUserByRGM(String rgm){
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("rgm", rgm);
		
		return super.findOneResult(User.FIND_BY_RGM, parameters);
	}
}
